//
//  LZSquareCell.m
//  LZHundredJie
//
//  Created by apple on 16/4/6.
//  Copyright © 2016年 m14a.cn. All rights reserved.
//

#import "LZSquareCell.h"
#import "LZSquareItem.h"


#import "UIImageView+WebCache.h"

@interface LZSquareCell ()

/** 图片*/
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
/** 名称*/
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation LZSquareCell

- (void)setItem:(LZSquareItem *)item
{
    _item = item;
    // 设置图片
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    // 设置名称
    self.nameLabel.text = item.name;
}

@end
